import service from '@/utils/request'

// @Tags PageType
// @Summary 创建pageType表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.PageType true "创建pageType表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /pageType/createPageType [post]
export const createPageType = (data) => {
  return service({
    url: '/pageType/createPageType',
    method: 'post',
    data
  })
}

// @Tags PageType
// @Summary 删除pageType表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.PageType true "删除pageType表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /pageType/deletePageType [delete]
export const deletePageType = (params) => {
  return service({
    url: '/pageType/deletePageType',
    method: 'delete',
    params
  })
}

// @Tags PageType
// @Summary 批量删除pageType表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除pageType表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /pageType/deletePageType [delete]
export const deletePageTypeByIds = (params) => {
  return service({
    url: '/pageType/deletePageTypeByIds',
    method: 'delete',
    params
  })
}

// @Tags PageType
// @Summary 更新pageType表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.PageType true "更新pageType表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /pageType/updatePageType [put]
export const updatePageType = (data) => {
  return service({
    url: '/pageType/updatePageType',
    method: 'put',
    data
  })
}

// @Tags PageType
// @Summary 用id查询pageType表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.PageType true "用id查询pageType表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /pageType/findPageType [get]
export const findPageType = (params) => {
  return service({
    url: '/pageType/findPageType',
    method: 'get',
    params
  })
}

// @Tags PageType
// @Summary 分页获取pageType表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取pageType表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /pageType/getPageTypeList [get]
export const getPageTypeList = (params) => {
  return service({
    url: '/pageType/getPageTypeList',
    method: 'get',
    params
  })
}